home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 3 / Amiga Tools 3.iso / grafik / raytracing / rayshade-4.0.6.3 / urt / amiga_extras / getami / makefile.lc < prev    next >
Encoding:
Makefile  |  1993-02-04  |  1.5 KB  |  60 lines

  1. #
  2. # Makefile for use with Lattice C
  3. #
  4. CC = lc
  5. STARTUP=LIB:c.o
  6. DEBUG = -O
  7. LINKDBG = ND
  8. #
  9. # Use these settings on a standard Amiga.
  10. # If you have a version of Lattice C earlier than 5.10, replace the -ba
  11. # switch with -b0, and link with lcnb.lib instead of lc.lib.
  12. #
  13. # CFLAGS = -ma -v -fi -cs -ba $(DEBUG)
  14. # MATHLIB = LIB:lcmieee.lib
  15. #
  16. # use these settings on an Amiga with a 68020
  17. #
  18. CFLAGS = -m2 -v -f8 -cs -ba $(DEBUG)
  19. MATHLIB = LIB:lcm881.lib
  20. #
  21. # if you have getopt and qsort in a library, declare it in SUPLIB
  22. #
  23. SUPLIB = LIB:unix.lib
  24. SUPPORT = mktemp.o
  25. #
  26. # else declare SUPLIB as empty, and add the appropriate .o files in SUPPORT
  27. # (alloca.o is only needed if you use the GNU getopt)
  28. #
  29. # SUPLIB =
  30. # SUPPORT = mktemp.o qsort.o getopt.o alloca.o
  31. #
  32. # Override certain library functions with home-made, smaller ones. Their only
  33. # purpose is to make executables smaller, so you don't really need them. If you
  34. # have something equivalent, declare it here. GDEF is for getami, and SDEF is
  35. # for show3.
  36. #
  37. GDEF = DEFINE __main=__nowbmain
  38. SDEF = DEFINE __main=__nowbmain
  39. #
  40. # ".o" files and libraries required to build getami
  41. #
  42. GOBJ = getami.o IsPAL.o $(SUPPORT)
  43. GLIBS = LIB:rle.lib $(MATHLIB) $(SUPLIB) LIB:lc.lib
  44. #
  45. # ".o" files and libraries required to build show3.
  46. #
  47. SOBJ = show3.o IsPAL.o
  48. SLIBS = $(SUPLIB) LIB:lc.lib
  49.  
  50. all: getami show3
  51.  
  52. getami: $(GOBJ)
  53.     blink FROM $(STARTUP) $(GOBJ) TO getami SC SD $(LINKDBG) $(GDEF) LIB $(GLIBS)
  54.  
  55. show3: $(SOBJ)
  56.     blink FROM $(STARTUP) $(SOBJ) TO show3 SC SD $(LINKDBG) $(SDEF) LIB $(SLIBS)
  57.  
  58. clean:
  59.     delete \#?.o getami show3 QUIET
  60.